package auction.chapter05.model;

import java.util.HashSet;
import java.util.Set;

public class User_SingleTable{
	private Long id;
	private String name;
	
	private BillingDetails_SingleTable defaultBillingDetails;
	private Set<BillingDetails_SingleTable> billingDetails=new HashSet<BillingDetails_SingleTable>();
	
	public User_SingleTable(){
	}
	
	public User_SingleTable(String s){
		name=s;
	}
	
	
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String i){
		name=i;
	}
	

	public BillingDetails_SingleTable getDefaultBillingDetails() {
		return defaultBillingDetails;
	}

	public void setDefaultBillingDetails(BillingDetails_SingleTable defaultBillingDetails) {
		this.defaultBillingDetails = defaultBillingDetails;
	}

	public Set<BillingDetails_SingleTable> getBillingDetails() {
		return billingDetails;
	}

	public void setBillingDetails(Set<BillingDetails_SingleTable> billingDetails) {
		this.billingDetails = billingDetails;
	}
	
	public void addBillingDetails(BillingDetails_SingleTable in){
		this.billingDetails.add(in);
		in.setUser(this);
	}
}